home *** CD-ROM | disk | FTP | other *** search
- /*
- * name: background
- *
- * description: paint rectangle rect of the display bitmap
- * the background colour.
- *
- * synopsis: background (rect)
- * struct rectangle *rect;
- *
- * globals: display (r/w)
- * back (r)
- *
- * calls: bitblt (bitblt.c)
- *
- * called by: dellayer (dellayer.c)
- */
- #include "layers.h"
-
- extern struct bitmap *display;
-
- unsigned short bght[] = { /* background halftone bitmap */
- 0xcccc, 0x0000, 0x3333, 0x0000,
- 0xcccc, 0x0000, 0x3333, 0x0000,
- 0xcccc, 0x0000, 0x3333, 0x0000,
- 0xcccc, 0x0000, 0x3333, 0x0000
- };
- struct bitmap back = {
- bght, 1, {{
- 0, 0
- }, {
- pixels_word, pixels_word
- }
- }, 0
- };
-
- background (rect)
- struct rectangle *rect;
- {
- struct point p;
- p.x = rect -> origin.x;
- p.y = rect -> origin.y;
- (void) bitblt (null, rect, display, &p, &back, s);
- }